home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / libs / sphigs / sph_quik.lha / quickdraw / src / qd_local.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-12-09  |  2.3 KB  |  133 lines

  1. /*---------------------------- HEADER  qd_local.h ----------------------------*/
  2. /* Copyright 1989 Brown University -- Jeffrey Vogel                           */
  3. /*----------------------------------------------------------------------------*/
  4.  
  5.  
  6. #include <X11/Xlib.h>
  7. #include <X11/Xutil.h>
  8. #include <X11/Xatom.h>
  9. #include "quickdraw.h"
  10.  
  11.  
  12. /*-------------------------------- Constants ---------------------------------*/
  13. /*----------------------------------------------------------------------------*/
  14.  
  15. #define COLOR__MAX_INTENSITY  65535
  16. #define X_DEFAULTS            "/cs/data/quickdraw/Xdefaults"
  17.  
  18.  
  19. #ifdef QD_BOSS
  20. #define DECLARE
  21. Boolean                    QDrunning = FALSE;
  22. #else 
  23. extern Boolean             QDrunning;
  24. #define DECLARE extern
  25. #endif
  26.  
  27. DECLARE Window              QDwindow;
  28. DECLARE Window              QDroot;
  29. DECLARE int                 QDscreen;
  30. DECLARE Boolean             QDcolor;
  31. DECLARE GC                  QDgc;
  32. DECLARE GC                  QDinvertgc, QDgridgc;
  33. DECLARE XFontStruct         *QDfontInfo[QD__MAX_FONTS];
  34. DECLARE Font                QDfonts[QD__MAX_FONTS];
  35. DECLARE XGCValues           QDgcValues;
  36. DECLARE Colormap            QDcolormap;
  37. DECLARE int                 QDwidth;
  38. DECLARE int                 QDheight;
  39. DECLARE int                 QDx;
  40. DECLARE int                 QDy;
  41. DECLARE Pixmap              QDstipple__gray;
  42. DECLARE Pixmap              QDstipple__ltGray;
  43. DECLARE Pixmap              QDstipple__dkGray;
  44. DECLARE Pixmap              QDstipple__white;
  45. DECLARE Pixmap              QDstipple__black;
  46. DECLARE unsigned long       QDcolor__white;
  47. DECLARE unsigned long       QDcolor__black;
  48. DECLARE unsigned long       QDcolor__red;
  49. DECLARE unsigned long       QDcolor__green;
  50. DECLARE unsigned long       QDcolor__blue;
  51. DECLARE unsigned long       QDcolor__yellow;
  52. DECLARE unsigned long       QDcolor__cyan;
  53. DECLARE unsigned long       QDcolor__magenta;
  54. DECLARE char *              F1;
  55. DECLARE char *              F2;
  56. DECLARE char *              F3;
  57. DECLARE char *              F4;
  58. #undef DECLARE
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67. #ifdef QD_BOSS
  68. FunctionPtr         QDerrorHandler = NULL;
  69. Display             *QDdisplay = NULL;
  70. Boolean             QDautoDisplay = FALSE;
  71. #else
  72. extern FunctionPtr  QDerrorHandler;
  73. extern Display      *QDdisplay;
  74. extern Boolean      QDautoDisplay;
  75. #endif
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.